package main

import "fmt"
import "time"

func main() {
	ch1 := make(chan int)
	ch2 := make(chan int)
	go func() {
		time.Sleep(4 * time.Second)
		ch1 <- 1
	}()

	select {
	case <-ch1:
		fmt.Println("chan1 recv")
	case <-ch2:
		fmt.Println("chan2 recv")
	}
	fmt.Println("done")
}

// 用于测试select的多路复用（读阻塞）
